home *** CD-ROM | disk | FTP | other *** search
- Path: reuse.postech.ac.kr!madincom
- From: madincom@reuse.postech.ac.kr (Oh Jun-hee)
- Newsgroups: comp.lang.c++
- Subject: Re: about for loop
- Date: 5 Jan 1996 14:47:22 GMT
- Organization: POSTECH, Pohang, Korea
- Message-ID: <4cjdlq$hc5@xpat.postech.ac.kr>
- References: <4civik$cmg@peter.pu.edu.tw>
- NNTP-Posting-Host: reuse.postech.ac.kr
- X-Newsreader: TIN [version 1.2 PL2]
-
- s8311116@csim49.pu.edu.tw wrote:
- > if i write this for loop"for(i=0 ; i<=10 ; i++ )
- > cout<< i ;
- > the result should be " 12345678910 " or " 0123456789 " ?
- > and what is "double linked list " ??
- > thanks!
-
- I. the result of "for loop" is 0123456789 ...
-
- for (initialization code;
- condition for continue;
- the instruction which will be executed after each loop)
- ^^^^^
-
- So, the instruction i++ will be first executed after first loop.
- ^^^^^
-
- II. doubly linked list is a linked-list whose nodes have two pointers
- , one of them pointing previous node and the other pointing next node.
-
-
- //-------------------------------------------------------------------
- // Computer Science and Engineering at POSTECH
- // 9325019 Oh Joon-Hee
- //
- // email : madincom@snow.postech.ac.kr
- // madincom@pobee.postech.ac.kr
- //-------------------------------------------------------------------
-